-- GENERATED SPELL FOR [Redfang Hunter] --


function spell0_26356(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(30639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26356', 15000, 1)
end

function spell1_26356(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26356', 5350, 1)
end

function spell2_26356(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26356', 629, 1)
end

function Sorts_26356(pUnit, Event)
local choix_sorts_26356 = math.random(0, 2)
if choix_sorts_26356 == 0 then
pUnit:RegisterEvent('spell0_26356', 1, 1)
end
if choix_sorts_26356 == 1 then
pUnit:RegisterEvent('spell1_26356', 1, 1)
end
if choix_sorts_26356 == 2 then
pUnit:RegisterEvent('spell2_26356', 1, 1)
end
end

function mob26356_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26356', math.random(1500, 3000), 1)
end

function mob26356_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26356_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26356_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26356, 1, 'mob26356_Action')
RegisterUnitEvent(26356, 2, 'mob26356_Leave')
RegisterUnitEvent(26356, 3, 'mob26356_Kill')
RegisterUnitEvent(26356, 4, 'mob26356_Die')
